class CreateBooks < ActiveRecord::Migration
  def self.up
    create_table :books do |t|
      t.column :title, :string, :null => false
      t.column :author, :string, :default => 
           "anonyme"
      t.column :isbn, :string, :limit => 14
      t.column :position, :integer
      t.timestamps
    end
  end

  def self.down
    drop_table :books
  end
end
